home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / Unistd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  3.6 KB  |  128 lines

  1. /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. /* Unix Header */
  3. #if __SC__ || __RCC__
  4. #pragma once
  5. #endif
  6.  
  7. #ifndef __UNISTD_H
  8. #define __UNISTD_H 1
  9.  
  10. #if M_UNIX || M_XENIX
  11.  
  12. #include <sys/unistd.h>
  13.  
  14. typedef int     ssize_t;
  15. #include <sys/types.h>
  16.  
  17. #include <time.h>
  18.  
  19. #ifndef NULL
  20. #define NULL    0
  21. #endif
  22.  
  23. #if __cplusplus
  24. extern "C"
  25. {
  26. #endif
  27.  
  28. void __cdecl _exit(int);
  29. int __cdecl access(const char *, int);
  30. unsigned __cdecl alarm(unsigned);
  31. int __cdecl chdir(const char *);
  32. int __cdecl chown(const char *, uid_t, gid_t);
  33. int __cdecl close(int);
  34. char * __cdecl ctermid(char *);
  35. int __cdecl dup(int);
  36. int __cdecl dup2(int, int);
  37. int __cdecl execl(const char *, const char *, ...);
  38. int __cdecl execle(const char *, const char *, ...);
  39. int __cdecl execlp(const char *, const char *, ...);
  40. int __cdecl execv(const char *, const char *const *);
  41. int __cdecl execve(const char *, const char *const *, const char *const *);
  42. int __cdecl execvp(const char *, const char *const *);
  43. int __cdecl execvpe(const char *, const char *const *, const char *const *);
  44. pid_t __cdecl fork(void);
  45. long __cdecl fpathconf(int, int);
  46. char * __cdecl getcwd(char *, size_t);
  47. gid_t __cdecl getegid(void);
  48. uid_t __cdecl geteuid(void);
  49. gid_t __cdecl getgid(void);
  50. int __cdecl getgroups(int, gid_t *);
  51. char * __cdecl getlogin(void);
  52. pid_t __cdecl getpgrp(void);
  53. pid_t __cdecl getpid(void);
  54. pid_t __cdecl getppid(void);
  55. uid_t __cdecl getuid(void);
  56. int __cdecl isatty(int);
  57. int __cdecl link(const char *, const char *);
  58. off_t __cdecl lseek(int, off_t, int);
  59. long __cdecl pathconf(const char *, int);
  60. int __cdecl pause(void);
  61. int __cdecl pipe(int *);
  62. ssize_t __cdecl read(int, void *, size_t);
  63. int __cdecl rmdir(const char *);
  64. int __cdecl setgid(gid_t);
  65. int __cdecl setpgid(pid_t, pid_t);
  66. pid_t __cdecl setsid(void);
  67. int __cdecl setuid(uid_t);
  68. unsigned __cdecl sleep(unsigned);
  69. #if M_ELF
  70. #define sysconf sysconf4
  71. #endif
  72. long __cdecl sysconf(int);
  73. pid_t __cdecl tcgetpgrp(int);
  74. int __cdecl tcsetpgrp(int, pid_t);
  75. char * __cdecl ttyname(int);
  76. int __cdecl unlink(const char *);
  77. ssize_t __cdecl write(int, const void *, size_t);
  78.  
  79. #if !defined(_POSIX_SOURCE)
  80. int __cdecl acct(const char *);
  81. int __cdecl brk(void *);
  82. int __cdecl chroot(const char *);
  83. void __cdecl exit(int);
  84. int __cdecl fattach(int, const char *);
  85. int __cdecl fchdir(int);
  86. int __cdecl fchown(int,uid_t, gid_t);
  87. int __cdecl fdetach(const char *);
  88. int __cdecl fsync(int);
  89. int __cdecl ftruncate(int, off_t);
  90. #ifndef OPTFIRST
  91. #define OPTFIRST 1
  92. #endif
  93. #if !OPTFIRST
  94. #define getopt Getopt
  95. int __cdecl nextarg(int argc, char * const argv[], const char *optstring);
  96. #else
  97. #define nextarg(a,b,c) optind++
  98. #endif
  99. int __cdecl getopt(int argc, char * const argv[], const char *optstring);
  100. pid_t __cdecl getpgid(pid_t);
  101. char * __cdecl gettxt(const char *, const char *);
  102. pid_t __cdecl getsid(pid_t);
  103. int __cdecl ioctl(int, int, ...);
  104. int __cdecl lchown(const char *, uid_t, gid_t);
  105. int __cdecl lockf(int, int, long);
  106. int __cdecl nice(int);
  107. void __cdecl profil(unsigned short *, unsigned int, unsigned int, unsigned int);
  108. int __cdecl ptrace(int, pid_t, int, int);
  109. int __cdecl readlink(const char *, void *, int);
  110. int __cdecl rename(const char *, const char *);
  111. void * __cdecl sbrk(size_t);
  112. int __cdecl select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
  113. int __cdecl setgroups(int, const gid_t *);
  114. pid_t __cdecl setpgrp(void);
  115. int __cdecl symlink(const char *, const char *);
  116. void __cdecl sync(void);
  117. int __cdecl truncate(const char *, off_t);
  118. pid_t __cdecl vfork(void);
  119. #endif
  120.  
  121. #if __cplusplus
  122. }
  123. #endif
  124.  
  125. #endif
  126.  
  127. #endif
  128.